package com.zby.model.pojo;

import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnNotNull;

//@AutoTable(comment = "点赞")
@AutoTable(comment = "点赞表")
@Data
@Schema(description = "点赞")
public class Likes extends BasePojo {

    @AutoColumn(value = "userId", comment = "用户id")
    @ColumnNotNull
    @Schema(description = "用户id")
    private Integer userId;

    @AutoColumn(value = "articleId", comment = "文章id")
    @ColumnNotNull
    @Schema(description = "文章id")
    private Integer articleId;

}
